package com.cmcc.waf.report.feign.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

/**
 * 通用分页
 *
 * @author yangjun
 * @date 2022/6/22 18:02
 */
@Data
public class BasePageRequest {

    @ApiModelProperty(value = "每页条数")
    @Range(max = 30, message = "每页最大不可超过30条")
    private Integer pageSize = 10;

    @ApiModelProperty(value = "页码")
    private Integer pageNum = 1;

}
